<!doctype html>
<html class="no-js">

<head>
    <title>订单列表</title>
    <#include "/fd/components/meta.html" />
    <#include "/fd/components/stylesheets.html" />
    <link rel="stylesheet" type="text/css" href="/fd/stylesheets/orderList.css">
</head>

<body>
    <div id="app">
        <ul class="order-list">
            <#list items as item>
            <li>
                <#if item.questionId??>
                    <#assign url="/fd/pay/?orderNo=${item.orderNo!''}" />
                </#if>
                <#if item.consultId??>
                    <#assign url="/fd/payConsult/${item.orderNo!''}" />
                </#if>
                <a href="${url!''}">
                    <div class="order-item">
                        <div class="am-g order-item-header">
                            <div class="am-u-sm-6">订单号&nbsp;${item.orderNo!''}</div>
                            <div class="am-u-sm-6">查看详情&nbsp;<i class="am-icon-chevron-right"></i></div>
                        </div>
                        <div class="order-item-content">
                            <div class="order-item-field">
                                <span>下单时间</span>
                                <span>${item.addTime!''}</span>
                            </div>
                            <div class="order-item-field">
                                <span>金额</span>
                                <span>¥&nbsp;${(item.price*0.01)!}</span>
                            </div>
                            <div class="order-item-field">
                                <span>状态</span>
                                <span>${item.status!''}</span>
                            </div>
                        </div>
                    </div>
                </a>
            </li>
            </#list>
        </ul>
        <#include "/fd/components/footer.html" />
    </div>
    <#include "/fd/components/scripts.html" />
</body>

</html>